package last.code.money;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        float input = scanner.nextFloat();
        int num = (int) (input * 100);

        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 500;
        num = num - b * 500;
        int c = num / 100;
        num = num - c * 100;
        int d = num / 50;
        num = num - d * 50;
        int e = num / 10;
        num = num - e * 10;
        int f = num / 2;
        num = num - f * 2;
        int g = num;
        System.out.println(a + " 张十元");
        System.out.println(b + " 张五元");
        System.out.println(c + " 张一元");
        System.out.println(d + " 个五角");
        System.out.println(e + " 个一角");
        System.out.println(f + " 个贰分");
        System.out.println(g + " 个壹分");
    }
}
